<include file="Public:header" />

<div class="container main">

    <include file="Public:left" />

    <div class="w790">

        <script>

  	function uploaded(path){

		$("#img_url").attr("src",'__PUBLIC__'+path);

		$("input[name='img_url']").val(path);

	}

	

	function del_img(){

		if(confirm('您确定要删除图片吗?')){

			var file=$("input[name='img_url']").val();

			$.post("{:U('delImgBypath')}",{'path':file},function(data){

				$("input[name='img_url']").val('');

				$("#img_url").attr('src','');

			});

		}else{ 

			return false;

		}

	}

	//删除图组图片

	function mdel_img(path){

		$('#img_list div img').each(function(index, element) {

			$.post("{:U('delImgBypath')}",{'path':path},function(data){

				if(data=='OK'){

					

					$('#img_list div').each(function(index, element) {

                        if($(this).attr('url')==path){

							$(this).remove();

						}

                    });

					

					$('#picmsg input').each(function(index, element) {

                        if($(this).val()==path){

							$(this).remove();

						}

                    });

				}

			});

		});

	}

	

  </script>

        <div class="h">

            <a href="{:U('index')}" class="btn btn-info">

                <i class="glyphicon glyphicon-circle-arrow-left"></i> 返回会员列表

            </a>

        </div>

        <form class="checkoutform2 form-horizontal" action="{:U('update')}" method="post">

            <input type="hidden" name="id" value="{$info.id}" />

            <div class="container">

                <div class="form-group">

                    <label class="col-sm-2 control-label">昵称</label>

                    <div class="col-sm-10">

                        {$info.nickname}

                    </div>

                </div>

                <div class="form-group">

                    <label class="col-sm-2 control-label">名称</label>

                    <div class="col-sm-10">

                        <input name="name" class="form-control" id="name" type="text" value="{$info.name}"/>

                    </div>

                </div>

                <div class="form-group">

                    <label class="col-sm-2 control-label">级别</label>

                    <div class="col-sm-10">

                        <select class="form-control" name="level" id="level">

                            <option value="">请选择</option>

                            <volist name="getLevelNameList" id="vo">

                                <option 

                                <eq name="key" value="$info['level']">selected="selected"</eq>

                                 value="{$key}">{$vo}

                                </option>

                            </volist>

                        </select>

                    </div>

                </div>

                <div class="form-group">

                  <label class="col-sm-2 control-label">编号</label>

                  <div class="col-sm-10"> 

                     <input class="form-control" value="{$info.number}" name="number" type="text" placeholder="服务商编号">

                  </div>

               </div>

                <div class="form-group">

                    <label class="col-sm-2 control-label">修改密码</label>

                    <div class="col-sm-10">

                        <input name="password" class="form-control" min="6" maxlength="12" id="password" type="password"/>

                    </div>

                </div>

                <?php if($info['level']>1&&$info['level']<5){ ?>

                <div class="form-group">

                    <label class="col-sm-2 control-label">地区ID</label>

                    <div class="col-sm-10">

                        <input type="text" class="form-control" name="area" value="{$info['area']}">

                    </div>

                </div>

                <?php } ?>

                <!--<div class="form-group">-->

                    <!--<label class="col-sm-2 control-label">所属部门</label>-->

                    <!--<div class="col-sm-10">-->

                        <!--<select class="form-control" name="role_id[]" size="10" id="role_id[]">-->

                            <!--<option value="">请选择你的部门</option>-->

                            <!--<volist name="role_list" id="vo">-->

                                <!--<option <eq name="vo['id']" value="$info['id']">selected="selected"</eq>-->

                                 <!--value="{$vo.id}">{:getdeepstr($vo['cl'])}{$vo.title}-->

                                <!--</option>-->

                            <!--</volist>-->

                        <!--</select>-->

                    <!--</div>-->

                <!--</div>-->

                <!--<div class="form-group">-->

                    <!--<label class="col-sm-2 control-label">所属职位</label>-->

                    <!--<div class="col-sm-10">-->

                        <!--<select class="form-control" name="position_id" size="10" id="position_id">-->

                            <!--<option value="">请选择你的职位</option>-->

                            <!--<volist name="position_list" id="vo">-->

                                <!--<option <eq name="vo['id']" value="$info['id']">selected="selected"</eq>value="{$vo.id}">-->

                                	<!--{$vo.name}-->

                                <!--</option>-->

                            <!--</volist>-->

                        <!--</select>-->

                    <!--</div>-->

                <!--</div>-->

                <!--<div class="form-group">-->

                    <!--<label class="col-sm-2 control-label">强制会员级别</label>-->

                    <!--<div class="col-sm-10">-->

                        <!--<label class="checkbox-inline">-->

                            <!--<input name="leveldown" type="radio" id="is_nav_8" value="1" -->

                            <!--<eq name="info['leveldown']" value="1">checked="checked"</eq>-->

                            <!--/>-->

                            <!--否</label>-->

                        <!--<label class="checkbox-inline">-->

                            <!--<input name="leveldown" type="radio" id="is_nav_9" value="0" -->

                            <!--<eq name="info['leveldown']" value="0">checked="checked"</eq>-->

                            <!--/>-->

                            <!--是</label>-->

                    <!--</div>-->

                <!--</div>-->

                <!--<notempty name="supplierList">-->

                    <!--<div class="form-group">-->

                        <!--<label class="col-sm-2 control-label">关联供货商</label>-->

                        <!--<div class="col-sm-10">-->

                            <!--<volist name="supplierList" id="vo">-->

                                <!--<label class="checkbox-inline">-->

                                    <!--<input name="supplier_id[]" type="checkbox" id="" value="{$vo.id}" -->

                                    <!--<if condition="$vo['member_id'] eq $info['id']">checked="checked"</if>-->

                                    <!--/>-->

                                    <!--{$vo.susername}</label>-->

                            <!--</volist>-->

                        <!--</div>-->

                    <!--</div>-->

                <!--</notempty>-->

                <div class="pages">

                    <button type="submit" class="btn btn-success">保存</button>

                </div>

            </div>

        </form>

    </div>

    <div class="clear">

    </div>

</div> 

<include file="Public:footer" />